package com.augmentum.login.common;

import java.util.ArrayList;
import java.util.List;

public class ResultConfig {

    private String name;
    private String view;
    private boolean redirect;
    private List<ViewParameter> viewParamlist = new ArrayList<ViewParameter>();

    public ResultConfig() {

    }

    public List<ViewParameter> getViewParamlist() {
        return viewParamlist;
    }

    public void setViewParamlist(List<ViewParameter> viewParamlist) {
        this.viewParamlist = viewParamlist;
    }

    public void addViewParameter(ViewParameter param) {
        viewParamlist.add(param);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getView() {
        return view;
    }

    public void setView(String view) {
        this.view = view;
    }

    public boolean isRedirect() {
        return redirect;
    }

    public void setRedirect(boolean redirect) {
        this.redirect = redirect;
    }

    @Override
    public String toString() {
        StringBuilder builder = new StringBuilder();
        builder.append("ActionResults [name=");
        builder.append(name);
        builder.append(", view=");
        builder.append(view);
        builder.append(", redirect=");
        builder.append(redirect);
        builder.append("]");
        return builder.toString();
    }
}
